<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<title>医疗问卷表单维护</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link href="/lobsteruiframe/layuiadmin/layui/css/layui.css" rel="stylesheet" />
	<link href="/lobsteruiframe/layuiadmin/style/admin.css" rel="stylesheet" />
	<script src="/lobsteruiframe/layuiadmin/layui/layui.js"></script>
	<script src="/jslib/lobster.js"></script>
	<script src="/jslib/jquery-3.4.1.min.js"></script>

	<script src="js/formmanage.js"></script>
	<style>
		body,
		html {
			height: 100%;
			background: #fff;
		}


		.nodeover .layui-tree-iconClick,
		.nodeover .layui-tree-txt {
			color: #009688;
			font-weight: bold;
		}
	</style>
</head>

<body>
	<div class="layui-fluid">
		<div class="layui-row">
			<div class="layui-col-md2" style="">
				<div id="Left" style="overflow: auto;min-height: 600px;">
				</div>
			</div>
			<div class="layui-col-md10">
				<div class="layui-card">
					<div class="layui-form layui-card-header layuiadmin-card-header-auto">
						<div class="layui-input-inline">
							<label class="layui-form-label">表单名称：</label>
							<div class="layui-input-inline">
								<input type="text" name="txtName" placeholder="请输入表单名称查询" autocomplete="off"
                                    class="layui-input">
							</div>
						</div>
						<div class="layui-input-inline">
							<button class="layui-btn layuiadmin-btn-useradmin" lay-submit
                                lay-filter="LAY-app-front-search" id="btnSearch">
                                <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>查找
                            </button>
						</div>
					</div>

					<div class="layui-card-body">
						<script id="toolbar" type="text/html">
							<div class="layui-btn-group">
								<button class="layui-btn layui-btn-sm" lay-event="add"><i class="layui-icon layui-icon-add-1"></i>添加</button>
								<button class="layui-btn layui-btn-sm" lay-event="import"><i class="layui-icon layui-icon-add-1"></i>从模板库导入</button>
								<!-- <button class="layui-btn layui-btn-sm" lay-event="design"><i class="layui-icon layui-icon-add-1"></i>设计表单</button> -->
							</div>
						</script>
						<table id="formTable" lay-filter="formTable"></table>
					</div>
				</div>
			</div>
		</div>
	</div>

</body>

</html>


<script type="text/html" id="statusTpl">
	{{# if(d.ReleaseStatus == '1'){ }}
	<span style="color:red;">已发布</span>
	{{# } else { }}
	未发布
	{{# } }}
</script>
<script type="text/html" id="flagTpl">
	{{# if(d.DelFlag == '1'){ }}
	<span style="color:red;">已停用</span>
	{{# } else { }}
	正常
	{{# } }}
</script>

<script type="text/html" id="option">
	<a class="layui-btn layui-btn-xs" lay-event="edit"><i class="layui-icon layui-icon-edit"></i>编辑</a>
	<a class="layui-btn layui-btn-xs" lay-event="design"><i class="layui-icon layui-icon-edit"></i>设计表单</a>
	<a class="layui-btn layui-btn-xs" lay-event="lookdata"><i class="layui-icon layui-icon-edit"></i>查看数据</a>
	<a class="layui-btn layui-btn-xs" lay-event="preview"><i class="layui-icon layui-icon-edit"></i>预览</a>
	<a class="layui-btn layui-btn-xs" lay-event="release"><i class="layui-icon layui-icon-edit"></i>发布</a>
	{{# if(d.DelFlag == '0'){ }}
	<a class="layui-btn layui-btn-danger layui-btn-xs"
		lay-event="disable"><i class="layui-icon layui-extend-stop"></i>停用</a>
	{{# } else { }}
	<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="enable"><i class="layui-icon layui-icon-ok"></i>启用</a>
	{{# } }}
	<a class="layui-btn layui-btn-xs" lay-event="saveas"><i class="layui-icon layui-icon-edit"></i>存为模板</a>
</script>

<script type="text/html" id="dialog">
	<div class="layui-fluid box">
		<form class="layui-form" lay-filter="formData" id="formData">
			<div class="layui-card">
				<div class="layui-card-body">
					<div class="layui-row">
						<div class="layui-col-xs12">
							<div class="layui-form-item">
								<label class="layui-form-label"><i style="color:red;">*&ensp; </i>表单分类</label>
								<div class="layui-input-block">
									<input type="text" class="layui-input" lay-verify="required" id="ClassId" name="ClassId" />
								</div>
							</div>
						</div>
					</div>
					<div class="layui-row">
						<div class="layui-col-xs12">
							<div class="layui-form-item">
								<label class="layui-form-label"><i style="color:red;">*&ensp; </i>表单名称</label>
								<div class="layui-input-block">
									<input type="text" class="layui-input" lay-verify="required" id="Title" name="Title" />
								</div>
							</div>
						</div>
					</div>
					<div class="layui-row">
						<div class="layui-col-xs12">
							<div class="layui-form-item">
								<label class="layui-form-label">说明</label>
								<div class="layui-input-block">
									<textarea class="layui-textarea" id="Description" name="Description"></textarea>
								</div>
							</div>
						</div>
					</div>
					<div class="layui-row">
						<div class="layui-col-xs12">
							<div class="layui-form-item">
								<label class="layui-form-label">问卷介绍</label>
								<div class="layui-input-block">

									<textarea class="layui-textarea" id="Introduction" name="Introduction"></textarea>
								</div>
							</div>
						</div>
					</div>
					<div class="layui-row">
						<div class="layui-col-xs12">
							<div class="layui-form-item">
								<label class="layui-form-label">填写须知</label>
								<div class="layui-input-block">

									<textarea class="layui-textarea" id="Notice" name="Notice"></textarea>
								</div>
							</div>
						</div>
					</div>
					<div class="layui-row">
						<div class="layui-col-xs12">
							<div class="layui-form-item">
								<label class="layui-form-label">适宜人群</label>
								<div class="layui-input-block">

									<textarea class="layui-textarea" id="Crowd" name="Crowd"></textarea>
								</div>
							</div>
						</div>
					</div>
					<div class="layui-row">
						<div class="layui-col-xs12">
							<div class="layui-form-item">
								<label class="layui-form-label">禁忌人群</label>
								<div class="layui-input-block">

									<textarea class="layui-textarea" id="tabooCrowd" name="tabooCrowd"></textarea>
								</div>
							</div>
						</div>
					</div>
					<div class="layui-row">
						<div class="layui-col-xs12">
							<div class="layui-form-item">
								<label class="layui-form-label">适用年龄段</label>
								<div class="layui-input-block">

									<textarea class="layui-textarea" id="ageGroup" name="ageGroup"></textarea>
								</div>
							</div>
						</div>
					</div>
					<div class="layui-row">
						<div class="layui-col-xs12">
							<div class="layui-form-item">
								<label class="layui-form-label">参考文献</label>
								<div class="layui-input-block">

									<textarea class="layui-textarea" id="Reference" name="Reference"></textarea>
								</div>
							</div>
						</div>
					</div>
					<!-- <div class="layui-row">
		                        <div class="layui-col-xs12">
		                            <div class="layui-form-item">
		                                <label class="layui-form-label">问卷图片</label>
		                                <div class="layui-input-block">
		                                    <input type="text" class="layui-input" id="HeadPic" name="HeadPic" />
		                                </div>
		                            </div>
		                        </div>
		                    </div>
                            <div class="layui-row">
		                        <div class="layui-col-xs12">
		                            <div class="layui-form-item">
		                                <label class="layui-form-label">关联Amis页面</label>
		                                <div class="layui-input-block">
		                                    <input type="text" class="layui-input" id="ViewId" name="ViewId" />
		                                </div>
		                            </div>
		                        </div>
		                    </div> -->
					<div class="layui-form-item layui-hide">
						<input type="text" class="layui-input" id="Id" name="Id" value="0" />
						<input type="button" lay-submit lay-filter="btnSubmit" id="btnSubmit" value="确认">
					</div>
				</div>
			</div>
			<div class="layui-form-item layui-hide">
				<input type="button" lay-submit lay-filter="LAY-app-front-submit" id="LAY-app-front-submit" value="保存">
				<input type="button" lay-cancel lay-filter="LAY-app-front-cancel" id="LAY-app-front-cancel" value="取消">
				<input type="reset" id="LAY-app-form-reset" value="重置">
			</div>

			<div class="layui-form-item layui-hide">
				<input type="text" id="txtId" name="Id" value="0" />
			</div>
		</form>
	</div>
</script>

<script type="text/html" id="option2">
	<a class="layui-btn layui-btn-xs" lay-event="import"><i class="layui-icon layui-icon-edit"></i>导入</a>
</script>

<script type="text/html" id="dialogtemplate">
	<div class="layui-layout">
		<div class="layui-card">
			<div class="layui-form layui-card-header layuiadmin-card-header-auto">
				<div class="layui-input-inline">
					<label class="layui-form-label">模板名称：</label>
					<div class="layui-input-inline">
						<input type="text" name="txttemplateformName" placeholder="请输入模板表单名称查询" autocomplete="off"
                                    class="layui-input">
					</div>
				</div>
				<div class="layui-input-inline">
					<button class="layui-btn " lay-submit
                                lay-filter="btnSearchTemplate" id="btnSearchTemplate">
                                <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>查找
                            </button>
				</div>
			</div>

			<div class="layui-card-body">
				<table id="templateformTable" lay-filter="templateformTable"></table>
			</div>
		</div>
	</div>
</script>

<script type="text/html" id="dialogsaveastemplate">
	<div class="layui-fluid box">
		<form class="layui-form" lay-filter="formData" id="formData">
			<div class="layui-row">
				<div class="layui-col-xs12">
					<div class="layui-form-item">
						<label class="layui-form-label">选择系统</label>
						<div class="layui-input-block">
							<select name="labeltype1" id="labeltype1" lay-filter="labeltype1"></select>
						</div>
					</div>
				</div>
			</div>
			<div class="layui-row">
				<div class="layui-col-xs12">
					<div class="layui-form-item">
						<label class="layui-form-label">选择场景</label>
						<div class="layui-input-block">
							<select name="labeltype2" id="labeltype2" lay-filter="labeltype2"></select>
						</div>
					</div>
				</div>
			</div>
			<div class="layui-row">
				<div class="layui-col-xs12">
					<div class="layui-form-item">
						<label class="layui-form-label">选择人群</label>
						<div class="layui-input-block">
							<select name="labeltype3" id="labeltype3" lay-filter="labeltype3"></select>
						</div>
					</div>
				</div>
			</div>
			<div class="layui-form-item layui-hide">
				<input type="button" lay-submit lay-filter="submitsaveas" id="submitsaveas" value="保存">
			</div>

		</form>
	</div>
</script>